package com.hilaver.dzmis.exhibition.utils;

public class StringUtils {
	public static String firstLetterToUpcase(String in) {
		if(in == null || in.length() == 0){
			return in;
		}
		return in.substring(0, 1).toUpperCase() + in.substring(1);
	}
	
	public static String getFileExtension(String fileName){
		if(fileName == null || fileName.length() == 0){
			return fileName;
		}
		String extension = fileName.substring(fileName.lastIndexOf("."));
		return extension == null?".jpg":extension;
	}
	
	public static Boolean isEmpty(String in){
		if(in == null || in.length() == 0){
			return true;
		}else{
			return false;
		}
	}
	
	public static void main(String[] args){
		System.out.println(getFileExtension("123213.sdfds.sdfdsf.sdfsd.sdfdsf"));
	}
}
